﻿using SportsPlatform.BaseModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Model.SportBusiness
{
    /// <summary>
    /// 成绩惩罚记录信息
    /// </summary>
    [Table("T_B_AchievementPunishmentInfo")]
    public class AchievementPunishmentInfo : BaseModel
    {
        /// <summary>
        /// 赛事成绩ID
        /// </summary>
        public Guid CompetitionAchievementId { get; set; }

        /// <summary>
        /// 参赛用户Id/参赛团队Id
        /// </summary>
        public Guid EmployeeId { get; set; }

        /// <summary>
        /// 参赛人/蔡赛团队
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string CompeteName { get; set; }

        /// <summary>
        /// 惩罚事件1漏标2黄牌3红牌
        /// </summary>
        public int PenaltyEvent { get; set; }

        /// <summary>
        /// 惩罚原因
        /// </summary>
        [Column(TypeName = "text")]
        public string PenaltyReason { get; set; }

        /// <summary>
        /// 惩罚时间
        /// </summary>
        public DateTime PenaltyTime { get; set; }

        /// <summary>
        /// 惩罚状态 true 启用，false撤销
        /// </summary>
        public bool PenaltyStatus { get; set; }

        /// <summary>
        /// 撤销时间
        /// </summary>
        public DateTime? RevokeTime { get; set; }
    }
}
